package com.ys.entity.sys;

import javax.persistence.Table;


import java.util.Date;

import com.ys.entity.base.BaseEntity;

/**
*/
@Table(name="lili_admin.`sys_button`", catalog="id")
public class SysButton extends BaseEntity<SysButton> {

	private Long id; // 主键ID
	private Long menuId; // 所属菜单ID
	private String name; // 按钮名称
	private String event; // 按钮属性
	private String icon; // 图标
	private String nameShiroAuth; // 权限名称
	private Integer sortNo; // 排序序号
	private Integer status; // 
	private Date createTime; // 
	private Date updateTime; // 

	public Long getId() {
		return id;
	}
	public SysButton setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getMenuId() {
		return menuId;
	}
	public SysButton setMenuId(Long menuId) {
		this.menuId = menuId;
		return this;
	}
	public String getName() {
		return name;
	}
	public SysButton setName(String name) {
		this.name = name;
		return this;
	}
	public String getEvent() {
		return event;
	}
	public SysButton setEvent(String event) {
		this.event = event;
		return this;
	}
	public String getIcon() {
		return icon;
	}
	public SysButton setIcon(String icon) {
		this.icon = icon;
		return this;
	}
	public String getNameShiroAuth() {
		return nameShiroAuth;
	}
	public SysButton setNameShiroAuth(String nameShiroAuth) {
		this.nameShiroAuth = nameShiroAuth;
		return this;
	}
	public Integer getSortNo() {
		return sortNo;
	}
	public SysButton setSortNo(Integer sortNo) {
		this.sortNo = sortNo;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public SysButton setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public SysButton setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public SysButton setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static SysButton sysButton(
		Long menuId,
		String name,
		String event,
		String icon,
		String nameShiroAuth,
		Integer sortNo,
		Integer status
			) {
		SysButton entity = new SysButton();
		entity.setMenuId(menuId);
		entity.setName(name);
		entity.setEvent(event);
		entity.setIcon(icon);
		entity.setNameShiroAuth(nameShiroAuth);
		entity.setSortNo(sortNo);
		entity.setStatus(status);
		return entity;
	}
}